package com.search.dao.repo;

import com.search.entity.Item;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ItemRepository extends ElasticsearchRepository<Item, Long> {

    Page<Item> findByName(String name, Pageable pageable);

    Page<Item> findByStoreId(Long storeId, Pageable pageable);
}
